package com.example.voucher.bo;

import com.example.voucher.contract.VoucherItemAccessor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoucherItemKeyOfItName {

    private String itName;

    public static VoucherItemKeyOfItName of(VoucherItemAccessor data) {
        return new VoucherItemKeyOfItName(data.getItName());
    }
}